#include<wx/wx.h>
#include"MenuBar.h"

MenuBar::MenuBar()
{
	MenuBar::menuFile=new wxMenu;
	menuFile->Append(Event_NewGame,_T("N&ew Game"),wxEmptyString);
	menuFile->Append(Event_Exit,_T("E&xit"),wxEmptyString);
	
	MenuBar::menuConnect=new wxMenu;
	menuFile->Append(Event_CreateServer,_T("Create Server"),wxEmptyString);
	menuConnect->Append(Event_Connect,_T("Connect"),wxEmptyString);
	
	MenuBar::menuHelp=new wxMenu;
	menuHelp->Append(Event_Help,_T("H&elp"),wxEmptyString);
	menuHelp->Append(Event_About,_T("About"),wxEmptyString);

	MenuBar::menuBar=new wxMenuBar;
	menuBar->Append(menuFile,_T("File"));
	menuBar->Append(menuConnect,_T("Tools"));
	menuBar->Append(menuHelp,_T("Help"));
	
}
